/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.gerenciadorfinanceiro.ejb.session.interfaces;

import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author eduardo
 */
@Local
public interface UsuarioSessionLocal {

    public void addUsuario(org.gerenciadorfinanceiro.ejb.entity.User user) throws org.gerenciadorfinanceiro.ejb.session.BusinessViolation;
    public void updateUsuario(org.gerenciadorfinanceiro.ejb.entity.User user) throws org.gerenciadorfinanceiro.ejb.session.BusinessViolation;
    public void deleteUsuario(org.gerenciadorfinanceiro.ejb.entity.User user) throws org.gerenciadorfinanceiro.ejb.session.BusinessViolation;

    public List<org.gerenciadorfinanceiro.ejb.entity.User> getUsuarios();
    public org.gerenciadorfinanceiro.ejb.entity.User getUsuario(String nameUser);
    public org.gerenciadorfinanceiro.ejb.entity.User getUsuario(int idUser);

    public boolean isUserAndPasswordValid(String login, String password);
    
}
